import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import VueAxios from 'vue-axios'
import ElementPlus from 'element-plus'
// 官方 import zhCn from 'element-plus/dist/locale/zh-cn.mjs' 错的
import zhCn from  'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import svgIconPlugin from './icons/index'
import './assets/css/global.css'
import '@/permission'
const app = createApp(App);

app.use(store)
.use(router)
.use(VueAxios, axios)
.use(ElementPlus,{
    locale: zhCn,
  })
.use(svgIconPlugin)
.mount('#app')